package com.du;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author : DuJiabao
 * @Date : 2021/1/30 13:52
 * @Project : java-web
 * @File : null.java
 * @Desc : 监听器，监听工程的开始与结束
 */
public class ServletContextListenerTest implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("contextInitialized");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("contextDestroyed");
    }
}
